package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IUser
import fhp.hlhj.giantfold.javaBean.UserInfoBean
import fhp.hlhj.giantfold.module.UserInfoModule

/**
 * author: FHP
 * data: on 2018\1\19 0019 10:26
 * E-Mail: 103945089@qq.com
 */
class UserPresenter(private val iUser: IUser) : UserInfoModule.UserInfoListener {
    private val module=UserInfoModule()

    fun getUser(params: HttpParams){
        module.getUser(params,this)
    }

    override fun showLoading() {
        iUser.showLoading()
    }

    override fun onLoadInfoListener(userInfoBean: UserInfoBean) {
        iUser.getUser(userInfoBean)
    }


}